/*
 * @Description: 
 * @Author: HKH
 * @Date: 2024-09-26 15:06:59
 * @LastEditors: HKH
 * @LastEditTime: 2024-09-26 15:12:28
 * 定义一个学生类，创建多个对象，放到集合中add，测试contains、remove等方法
 */
public class Student {
    private String name;
    private int age;
  
    public Student() {
    }
  
    public Student(String name, int age) {
      this.name = name;
      this.age = age;
    }
  
    // 重写toSting方法
    @Override
    public String toString() {
      return "Student{name:" + name + ",age:" + age + "}";
    }
  }